package com.du.cloud.common.base.constant.enums;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

/**
 * Desc:
 * Author: dushuang
 * Date 2019/12/30 17:05
 */
@Getter
@RequiredArgsConstructor
public enum ResultCode {
    //处理成功
    SUCCESS(200, "操作成功!"),

    //处理失败
    FAILED(500, "操作失败!"),

    //未登录
    NOT_LOGIN(401, "认证失败!"),

    //未激活
    NOT_ACTIVED(402, "用户已禁用!"),

    //访问拒绝
    ACCESS_DENIED(403, "拒绝访问!"),

    //验证无效
    INVALID_EXCEPTION(426, "验证无效!"),

    //数据库错误
    DB_ERROR(503, "Error querying database"),

    //参数错误
    PARAM_PARAMETER_ERROR(501, "参数异常!"),

    //参数为空
    PARAM_PARAMETER_IS_NULL(502, "参数异常!"),
    ;

    public final int code;

    public final String message;

}
